.publish {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 100px;

  &__header {
    background: linear-gradient(135deg, #6697f5, #4facfe);
    padding: 40px 20px 30px;
    text-align: center;
  }

  &__title {
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
  }

  &__subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
  }

  &__form {
    padding: 0 20px;
  }

  &__section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
  }

  &__section-title {
    font-size: 18px;
    color: #333333;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
  }

  &__field {
    margin-bottom: 20px;
  }

  &__label {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
  }

  &__input {
    width: 100%;
    height: 48px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    color: #333333;

    &--error {
      border-color: #ff4d4f;
      background: #fff2f0;
    }
  }

  &__picker-group {
    display: flex;
    gap: 12px;
  }

  &__picker {
    flex: 1;
    height: 48px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &--error {
      border-color: #ff4d4f;
      background: #fff2f0;
    }
  }

  &__picker-text {
    font-size: 16px;
    color: #333333;
  }

  &__picker-placeholder {
    font-size: 16px;
    color: #999999;
  }

  &__picker-arrow {
    font-size: 12px;
    color: #999999;
  }

  &__textarea {
    width: 100%;
    min-height: 120px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    color: #333333;
    line-height: 1.6;

    &--error {
      border-color: #ff4d4f;
      background: #fff2f0;
    }
  }

  &__textarea-counter {
    text-align: right;
    margin-top: 8px;
  }

  &__counter-text {
    font-size: 12px;
    color: #999999;
  }

  &__tag-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  &__tag-add {
    padding: 12px 20px;
    background: #6697f5;
    border-radius: 12px;
    flex-shrink: 0;
  }

  &__tag-add-text {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
  }

  &__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  &__tag {
    display: flex;
    align-items: center;
    background: #e6f7ff;
    border: 1px solid #6697f5;
    padding: 6px 12px;
    border-radius: 16px;
  }

  &__tag-text {
    font-size: 14px;
    color: #6697f5;
    margin-right: 6px;
  }

  &__tag-close {
    font-size: 16px;
    color: #6697f5;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &__error {
    font-size: 12px;
    color: #ff4d4f;
    margin-top: 4px;
    display: block;
  }

  &__actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    border-top: 1px solid #f0f0f0;
  }

  &__btn {
    flex: 1;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    &--primary {
      background: #6697f5;

      &.publish__btn--disabled {
        background: #cccccc;
      }
    }

    &--secondary {
      background: #f5f5f5;
      border: 1px solid #e0e0e0;
    }
  }

  &__btn-text {
    font-size: 16px;
    font-weight: 500;

    .publish__btn--primary & {
      color: #ffffff;
    }

    .publish__btn--secondary & {
      color: #666666;
    }
  }
} 